/// 当前页结果集
class WithdrawOrderHisPageResponseDto {
  /// 主键id
  final int? id;
  /// 订单号
  final String? orderNum;
  /// 银行卡用户姓名
  final String? accountName;
  /// 申请用户-用户名
  final String? userName;
  /// 申请用户-姓名
  final String? fullName;
  /// 银行
  final String? bankCardType;
  /// 银行账号
  final String? bankCard;
  /// 财务报价，美元兑换奈拉的汇率
  final String? rate;
  /// 提现金额，单位奈拉
  final String? withdrawAmountNaira;
  /// 订单所得金额，单位美元
  final String? withdrawAmountDollar;
  /// 手续费
  final String? fee;
  /// 申请时间
  final String? createTime;
  /// 操作人
  final String? operateBy;
  /// 提现结果，1通过，0拒绝
  final int? withdrawResult;
  /// 提现时间
  final String? withdrawTime;
  /// 备注
  final String? remark;
  /// 凭证访问地址
  final String? proofUrl;

  WithdrawOrderHisPageResponseDto({
    this.id,
    this.orderNum,
    this.accountName,
    this.userName,
    this.fullName,
    this.bankCardType,
    this.bankCard,
    this.rate,
    this.withdrawAmountNaira,
    this.withdrawAmountDollar,
    this.fee,
    this.createTime,
    this.operateBy,
    this.withdrawResult,
    this.withdrawTime,
    this.remark,
    this.proofUrl,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (orderNum != null) data['orderNum'] = orderNum;
    if (accountName != null) data['accountName'] = accountName;
    if (userName != null) data['userName'] = userName;
    if (fullName != null) data['fullName'] = fullName;
    if (bankCardType != null) data['bankCardType'] = bankCardType;
    if (bankCard != null) data['bankCard'] = bankCard;
    if (rate != null) data['rate'] = rate;
    if (withdrawAmountNaira != null) data['withdrawAmountNaira'] = withdrawAmountNaira;
    if (withdrawAmountDollar != null) data['withdrawAmountDollar'] = withdrawAmountDollar;
    if (fee != null) data['fee'] = fee;
    if (createTime != null) data['createTime'] = createTime;
    if (operateBy != null) data['operateBy'] = operateBy;
    if (withdrawResult != null) data['withdrawResult'] = withdrawResult;
    if (withdrawTime != null) data['withdrawTime'] = withdrawTime;
    if (remark != null) data['remark'] = remark;
    if (proofUrl != null) data['proofUrl'] = proofUrl;
    return data;
  }

  factory WithdrawOrderHisPageResponseDto.fromJson(Map<String, dynamic> json) {
    return WithdrawOrderHisPageResponseDto(
      id: json['id'],
      orderNum: json['orderNum'],
      accountName: json['accountName'],
      userName: json['userName'],
      fullName: json['fullName'],
      bankCardType: json['bankCardType'],
      bankCard: json['bankCard'],
      rate: json['rate'],
      withdrawAmountNaira: json['withdrawAmountNaira'],
      withdrawAmountDollar: json['withdrawAmountDollar'],
      fee: json['fee'],
      createTime: json['createTime'],
      operateBy: json['operateBy'],
      withdrawResult: json['withdrawResult'],
      withdrawTime: json['withdrawTime'],
      remark: json['remark'],
      proofUrl: json['proofUrl'],
    );
  }
}